using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace RibbonMerge
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : DevComponents.DotNetBar.Office2007Form
	{
		private DevComponents.DotNetBar.RibbonControl ribbonControl1;
		private DevComponents.DotNetBar.RibbonTabItem ribbonTabItem1;
		private DevComponents.DotNetBar.RibbonPanel ribbonPanel1;
		private DevComponents.DotNetBar.QatCustomizeItem qatCustomizeItem1;
		private DevComponents.DotNetBar.RibbonBar ribbonBar1;
		private DevComponents.DotNetBar.ButtonItem buttonItem1;
		private DevComponents.DotNetBar.ButtonItem buttonItem2;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl();
			this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel();
			this.ribbonBar1 = new DevComponents.DotNetBar.RibbonBar();
			this.buttonItem1 = new DevComponents.DotNetBar.ButtonItem();
			this.buttonItem2 = new DevComponents.DotNetBar.ButtonItem();
			this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem();
			this.qatCustomizeItem1 = new DevComponents.DotNetBar.QatCustomizeItem();
			this.ribbonControl1.SuspendLayout();
			this.ribbonPanel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// ribbonControl1
			// 
			this.ribbonControl1.Controls.AddRange(new System.Windows.Forms.Control[] {
																						 this.ribbonPanel1});
			this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top;
			this.ribbonControl1.DockPadding.Bottom = 2;
			this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
																						  this.ribbonTabItem1});
			this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F);
			this.ribbonControl1.Name = "ribbonControl1";
			this.ribbonControl1.QuickToolbarItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
																									  this.qatCustomizeItem1});
			this.ribbonControl1.Size = new System.Drawing.Size(568, 112);
			this.ribbonControl1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
			this.ribbonControl1.TabGroupHeight = 14;
			this.ribbonControl1.TabIndex = 0;
			this.ribbonControl1.Text = "ribbonControl1";
			// 
			// ribbonPanel1
			// 
			this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
			this.ribbonPanel1.Controls.AddRange(new System.Windows.Forms.Control[] {
																					   this.ribbonBar1});
			this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.ribbonPanel1.DockPadding.Bottom = 1;
			this.ribbonPanel1.Location = new System.Drawing.Point(0, 25);
			this.ribbonPanel1.Name = "ribbonPanel1";
			this.ribbonPanel1.Size = new System.Drawing.Size(568, 85);
			this.ribbonPanel1.TabIndex = 1;
			// 
			// ribbonBar1
			// 
			this.ribbonBar1.AutoOverflowEnabled = true;
			this.ribbonBar1.Dock = System.Windows.Forms.DockStyle.Left;
			this.ribbonBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] {
																					  this.buttonItem1,
																					  this.buttonItem2});
			this.ribbonBar1.Name = "ribbonBar1";
			this.ribbonBar1.Size = new System.Drawing.Size(136, 84);
			this.ribbonBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
			this.ribbonBar1.TabIndex = 0;
			this.ribbonBar1.Text = "ribbonBar1";
			// 
			// buttonItem1
			// 
			this.buttonItem1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
			this.buttonItem1.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem1.Image")));
			this.buttonItem1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
			this.buttonItem1.Name = "buttonItem1";
			this.buttonItem1.Text = "<div align=\"center\">Show MDI<br/>Child 1</div>";
			this.buttonItem1.Click += new System.EventHandler(this.buttonItem1_Click);
			// 
			// buttonItem2
			// 
			this.buttonItem2.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
			this.buttonItem2.Image = ((System.Drawing.Bitmap)(resources.GetObject("buttonItem2.Image")));
			this.buttonItem2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
			this.buttonItem2.Name = "buttonItem2";
			this.buttonItem2.Text = "<div align=\"center\">Show MDI<br/>Child 2</div>";
			this.buttonItem2.Click += new System.EventHandler(this.buttonItem2_Click);
			// 
			// ribbonTabItem1
			// 
			this.ribbonTabItem1.Checked = true;
			this.ribbonTabItem1.Name = "ribbonTabItem1";
			this.ribbonTabItem1.Panel = this.ribbonPanel1;
			this.ribbonTabItem1.Text = "MDI Tab";
			// 
			// qatCustomizeItem1
			// 
			this.qatCustomizeItem1.Name = "qatCustomizeItem1";
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(194)), ((System.Byte)(217)), ((System.Byte)(247)));
			this.ClientSize = new System.Drawing.Size(568, 350);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.ribbonControl1});
			this.IsMdiContainer = true;
			this.Name = "Form1";
			this.Text = "Form1";
			this.ribbonControl1.ResumeLayout(false);
			this.ribbonPanel1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void buttonItem1_Click(object sender, System.EventArgs e)
		{
			ChildForm1 f = new ChildForm1();
			f.MdiParent = this;
			f.Show();
		}

		private void buttonItem2_Click(object sender, System.EventArgs e)
		{
			ChildForm2 f = new ChildForm2();
			f.MdiParent = this;
			f.Show();
		}
	}
}
